package com.chenju.invokechainservice.domain;

import lombok.EqualsAndHashCode;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.List;

@Node
@EqualsAndHashCode(callSuper = true)
public class TParameterNode extends BaseNode{
    private String type;

    @Relationship(type = "ANNOTATED", direction = Relationship.Direction.INCOMING)
    private List<TAnnotationNode> annotations;

    public TParameterNode() {
        super();
    }
    public TParameterNode(String name, String type) {
        super(name);
        this.type = type;
    }

    public TParameterNode(String name) {
        super(name);
    }
}
